﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Stote.UControls
{
    /// <summary>
    /// 传递数据
    /// </summary>
    public class UCStoreAreaArgs : EventArgs
    {
        /// <summary>
        /// 仓库区域Id
        /// </summary>
        public int StoreAreaId { get; set; }
        /// <summary>
        /// 仓库区域编号
        /// </summary>
        public string StoreAreaNo { get; set; }
        /// <summary>
        /// 仓库区域最小温度
        /// </summary>
        public decimal MinTemperature { get; set; }
        /// <summary>
        /// 仓库区域最大温度
        /// </summary>
        public decimal MaxTemperature { get; set; }
        /// <summary>
        /// 仓库区域当前温度
        /// </summary>
        public decimal Temperature { get; set; }
        /// <summary>
        /// 温度状态（0正常，1高预警，2低预警）
        /// </summary>
        public int TemperatureState { get; set; }

        public UCStoreAreaArgs(int storeAreaId, string storeAreaNo, decimal temperature, int temperatureState, decimal minTemperature, decimal maxTemperature)
        {
            this.StoreAreaId = storeAreaId;
            this.StoreAreaNo = storeAreaNo;
            this.Temperature = temperature;
            this.TemperatureState = temperatureState;
            this.MinTemperature = minTemperature;
            this.MaxTemperature = maxTemperature;
        }
    }
}
